﻿using System.Linq;
using BLL.Utility;
using Entity.Context;
using System;
using System.Collections;

namespace BLL.Sgf
{
    public class BancoBLL : AbstractClass
    {

        #region -- BuscaTodos --
        public IList BuscaTodos()
        {
            try
            {
                using (var ctx = new Context())
                {
                    return (from c in ctx.Banco
                            select c).OrderBy(c => c.Descricao).ToList();
                }
            }
            catch (Exception ex)
            {
                throw new Exception("BancoBLL.BuscaTodos :: " + ex.Message, ex);
            }
        }
        #endregion

    }
}
